<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>MyTechBook</title>
        
    <link rel="stylesheet" type="text/css" href="../../static/css/main.css">
</head>
<body>
<div class="navbar navbar-line">
    <div class="container">
        <div class="logo">
            
                MyTechBook
            
        </div>
        <input type="checkbox" id="idoc_nav" />
        <div class="menu_tree">
        <ul><li><a href="../../index.html">首页</a></li><li><a href="#"><span></span>前沿观察</a><ul><li><a href="../../html/前沿观察/ECMAScript 6入门.html">ECMAScript 6入门</a></li><li><a href="../../html/前沿观察/Immutable详解及React中实践.html">Immutable详解及React中实践</a></li><li><a href="../../html/前沿观察/Node.js MVC框架ThinkJS.html">Node.js MVC框架ThinkJS</a></li><li><a href="../../html/前沿观察/Nodejs 5.0.0版本.html">Nodejs 5.0.0版本</a></li><li><a href="../../html/前沿观察/关系型数据库PostgreSQL.html">关系型数据库PostgreSQL</a></li><li><a href="../../html/前沿观察/轻型MVVM框架Vue.js.html">轻型MVVM框架Vue.js</a></li><li><a href="../../html/前沿观察/基于nodejs的开发框架koa.html">基于nodejs的开发框架koa</a></li></ul></li><li><a href="#"><span></span>前端工程化</a><ul><li><a href="../../html/前端工程化/前端模板.html">前端模板</a></li><li><a href="../../html/前端工程化/性能优化和前端工程的爱恨情仇.html">性能优化和前端工程的爱恨情仇</a></li><li><a href="../../html/前端工程化/webpack入门及实践.html">webpack入门及实践</a></li><li><a href="../../html/前端工程化/前端工程化不完全装逼指南.html">前端工程化不完全装逼指南</a></li></ul></li><li><a href="#"><span></span>性能优化</a><ul><li><a href="../../html/性能优化/jshint代码质量检测.html">jshint代码质量检测</a></li><li class="active"><a href="../../html/性能优化/jshint配置说明.html">jshint配置说明</a></li><li><a href="../../html/性能优化/NC性能优化.html">NC性能优化</a></li><li><a href="../../html/性能优化/React编码规范.html">React编码规范</a></li><li><a href="../../html/性能优化/性能优化待办事项.html">性能优化待办事项</a></li><li><a href="../../html/性能优化/性能优化点总结.html">性能优化点总结</a></li></ul></li><li><a href="#"><span></span>技术分享</a><ul><li><a href="../../html/技术分享/React技术分享.html">React技术分享</a></li><li><a href="../../html/技术分享/学习Git.html">学习Git</a></li><li><a href="../../html/技术分享/面向对象.html">面向对象</a></li><li><a href="../../html/技术分享/Node.js知识详解.html">Node.js知识详解</a></li><li><a href="../../html/技术分享/2015年大前端技术年终总结.html">2015年大前端技术年终总结</a></li></ul></li><li><a href="#"><span></span>随想笔记</a><ul><li><a href="../../html/随想笔记/项目技术栈规划.html">项目技术栈规划</a></li><li><a href="../../html/随想笔记/笔试面试大纲.html">笔试面试大纲</a></li></ul></li><li><a href="../../html/CONTACT.html">CONTACT</a></li></ul>    
        </div>
        
        
        <div class="forkgithub"><a target="_blank" href="https://github.com/sujunming">fork on github</a></div>
        

        <section class="idoc_nav_btn">
            <label for="idoc_nav"><span></span></label>
        </section>
    </div>
    
</div>




<div class="container">

    <div class="page-toc">
        <ul><li><a href="#t0.jshintrc配置文件说明">.jshintrc配置文件说明</a><ul><li><a href="#t1严格选项">严格选项</a></li><li><a href="#t2宽松选项">宽松选项</a></li><li><a href="#t3环境">环境</a></li></ul></li></ul>
    </div>
    
    <div class="content markdown-body">
        <h1 id="t0.jshintrc&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x8BF4;&#x660E;">.jshintrc&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x8BF4;&#x660E; <a href="#t0.jshintrc&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x8BF4;&#x660E;"> # </a></h1>
<h2 id="t1&#x4E25;&#x683C;&#x9009;&#x9879;">&#x4E25;&#x683C;&#x9009;&#x9879; <a href="#t1&#x4E25;&#x683C;&#x9009;&#x9879;"> # </a></h2>
<pre><code class="lang-JavaScript">
<span class="hljs-comment">// &#x7981;&#x7528;&#x4F4D;&#x8FD0;&#x7B97;&#x7B26;&#xFF0C;&#x4F4D;&#x8FD0;&#x7B97;&#x7B26;&#x5728; JavaScript &#x4E2D;&#x4F7F;&#x7528;&#x8F83;&#x5C11;&#xFF0C;&#x7ECF;&#x5E38;&#x662F;&#x628A; &amp;&amp; &#x9519;&#x8F93;&#x6210; &amp;</span>
<span class="hljs-string">&quot;bitwise&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x5FAA;&#x73AF;&#x6216;&#x8005;&#x6761;&#x4EF6;&#x8BED;&#x53E5;&#x5FC5;&#x987B;&#x4F7F;&#x7528;&#x82B1;&#x62EC;&#x53F7;&#x5305;&#x56F4;</span>
<span class="hljs-string">&quot;curly&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x5F3A;&#x5236;&#x4F7F;&#x7528;&#x4E09;&#x7B49;&#x53F7;</span>
<span class="hljs-string">&quot;eqeqeq&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x517C;&#x5BB9;&#x4F4E;&#x7EA7;&#x6D4F;&#x89C8;&#x5668; IE 6/7/8/9</span>
<span class="hljs-string">&quot;es3&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x7981;&#x6B62;&#x91CD;&#x5199;&#x539F;&#x751F;&#x5BF9;&#x8C61;&#x7684;&#x539F;&#x578B;&#xFF0C;&#x6BD4;&#x5982; Array &#xFF0C; Date</span>
<span class="hljs-string">&quot;freeze&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x4EE3;&#x7801;&#x7F29;&#x8FDB;</span>
<span class="hljs-string">&quot;indent&quot;</span>: <span class="hljs-literal">false</span>

<span class="hljs-comment">// &#x7981;&#x6B62;&#x5B9A;&#x4E49;&#x4E4B;&#x524D;&#x4F7F;&#x7528;&#x53D8;&#x91CF;&#xFF0C;&#x5FFD;&#x7565; function &#x51FD;&#x6570;&#x58F0;&#x660E;</span>
<span class="hljs-string">&quot;latedef&quot;</span>: <span class="hljs-string">&quot;nofunc&quot;</span>

<span class="hljs-comment">// &#x6784;&#x9020;&#x5668;&#x51FD;&#x6570;&#x9996;&#x5B57;&#x6BCD;&#x5927;&#x5199;</span>
<span class="hljs-string">&quot;newcap&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x7981;&#x6B62;&#x4F7F;&#x7528; arguments.caller &#x548C; arguments.callee</span>
<span class="hljs-string">&quot;noarg&quot;</span>:<span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x503C;&#x4E3A; true &#x65F6;&#xFF0C;&#x7981;&#x6B62;&#x5355;&#x5F15;&#x53F7;&#x548C;&#x53CC;&#x5F15;&#x53F7;&#x6DF7;&#x7528;</span>
<span class="hljs-string">&quot;quotmark&quot;</span>: <span class="hljs-literal">false</span>

<span class="hljs-comment">// &#x53D8;&#x91CF;&#x672A;&#x5B9A;&#x4E49;</span>
<span class="hljs-string">&quot;undef&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x53D8;&#x91CF;&#x672A;&#x4F7F;&#x7528;</span>
<span class="hljs-string">&quot;unused&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x4E25;&#x683C;&#x6A21;&#x5F0F;</span>
<span class="hljs-string">&quot;strict&quot;</span>:<span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x6700;&#x591A;&#x53C2;&#x6570;&#x4E2A;&#x6570;</span>
<span class="hljs-string">&quot;maxparams&quot;</span>: <span class="hljs-number">4</span>

<span class="hljs-comment">// &#x6700;&#x5927;&#x5D4C;&#x5957;&#x6DF1;&#x5EA6;</span>
<span class="hljs-string">&quot;maxdepth&quot;</span>: <span class="hljs-number">4</span>

<span class="hljs-comment">// &#x590D;&#x6742;&#x5EA6;&#x68C0;&#x6D4B;</span>
<span class="hljs-string">&quot;maxcomplexity&quot;</span>:<span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x6700;&#x5927;&#x884C;&#x6570;</span>
<span class="hljs-string">&quot;maxlen&quot;</span>: <span class="hljs-number">600</span>
</code></pre>
<h2 id="t2&#x5BBD;&#x677E;&#x9009;&#x9879;">&#x5BBD;&#x677E;&#x9009;&#x9879; <a href="#t2&#x5BBD;&#x677E;&#x9009;&#x9879;"> # </a></h2>
<pre><code class="lang-javascript">
<span class="hljs-comment">// &#x63A7;&#x5236;&#x201C;&#x7F3A;&#x5C11;&#x5206;&#x53F7;&#x201D;&#x7684;&#x8B66;&#x544A;</span>
<span class="hljs-string">&quot;asi&quot;</span>: <span class="hljs-literal">true</span>
<span class="hljs-string">&quot;boss&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x5FFD;&#x7565; debugger</span>
<span class="hljs-string">&quot;debug&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x63A7;&#x5236; eval &#x4F7F;&#x7528;&#x8B66;&#x544A;</span>
<span class="hljs-string">&quot;evil&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x68C0;&#x67E5;&#x4E00;&#x884C;&#x4EE3;&#x7801;&#x6700;&#x540E;&#x58F0;&#x660E;&#x540E;&#x9762;&#x7684;&#x5206;&#x53F7;&#x662F;&#x5426;&#x9057;&#x6F0F;</span>
<span class="hljs-string">&quot;lastsemic&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x68C0;&#x67E5;&#x4E0D;&#x5B89;&#x5168;&#x7684;&#x6298;&#x884C;&#xFF0C;&#x5FFD;&#x7565;&#x9017;&#x53F7;&#x5728;&#x6700;&#x524D;&#x9762;&#x7684;&#x7F16;&#x7A0B;&#x98CE;&#x683C;</span>
<span class="hljs-string">&quot;laxcomma&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x68C0;&#x67E5;&#x5FAA;&#x73AF;&#x5185;&#x5D4C;&#x5957; function</span>
<span class="hljs-string">&quot;loopfunc&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x68C0;&#x67E5;&#x591A;&#x884C;&#x5B57;&#x7B26;&#x4E32;</span>
<span class="hljs-string">&quot;multistr&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x68C0;&#x67E5;&#x65E0;&#x6548;&#x7684; typeof &#x64CD;&#x4F5C;&#x7B26;&#x503C;</span>
<span class="hljs-string">&quot;notypeof&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// person[&apos;name&apos;] vs. person.name</span>
<span class="hljs-string">&quot;sub&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// new function () { ... } &#x548C; new Object ;</span>
<span class="hljs-string">&quot;supernew&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x5728;&#x975E;&#x6784;&#x9020;&#x5668;&#x51FD;&#x6570;&#x4E2D;&#x4F7F;&#x7528; this</span>
<span class="hljs-string">&quot;validthis&quot;</span>: <span class="hljs-literal">true</span>
</code></pre>
<h2 id="t3&#x73AF;&#x5883;">&#x73AF;&#x5883; <a href="#t3&#x73AF;&#x5883;"> # </a></h2>
<pre><code class="lang-javascript"><span class="hljs-comment">// &#x9884;&#x5B9A;&#x4E49;&#x5168;&#x5C40;&#x53D8;&#x91CF; document &#xFF0C; navigator &#xFF0C; FileReader &#x7B49;</span>
<span class="hljs-string">&quot;browser&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x5B9A;&#x4E49;&#x7528;&#x4E8E;&#x8C03;&#x8BD5;&#x7684;&#x5168;&#x5C40;&#x53D8;&#x91CF;&#xFF1A; console &#xFF0C; alert</span>
<span class="hljs-string">&quot;devel&quot;</span>: <span class="hljs-literal">true</span>

<span class="hljs-comment">// &#x5B9A;&#x4E49;&#x5168;&#x5C40;&#x53D8;&#x91CF;</span>
<span class="hljs-string">&quot;jquery&quot;</span>: <span class="hljs-literal">true</span>,
<span class="hljs-string">&quot;node&quot;</span>: <span class="hljs-literal">true</span>
</code></pre>

        <div class="copyright">Powered by <a href="https://github.com/jaywcjlove/idoc" target="_blank">idoc</a>. Dependence <a href="https://nodejs.org">Node.js</a> run.</div>
    </div>

</div>


</body>
</html>
